<template>
	<view>
		<cu-custom bgColor="bg-white" :isBack="true">
			<block slot="content">
				<view class="custom-title">通知</view>
			</block>
		</cu-custom>
		<view class="padding-top-48 padding-left-32 padding-right-32">
			<view class="title">{{info.title}}</view>
			<view class="padding-top-8 padding-bottom-32 solid-bottom">
				<text class="text-787879 text-sm">系统 · {{info.retime}}</text>
			</view>
			<view class="padding-top-32 text-0101 text-df">
				<u-parse :html="info.content" :tag-style="vuex_parse_style"
					:domain="vuex_config.upload ? vuex_config.upload.cdnurl : ''" @linkpress="navigate"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {}
			}
		},
		onLoad(options) {
			if(options.id){
				this.getInfo(options.id,options.is_read);
			}
		},
		methods: {
			getInfo: async function(id,is_read) {
				let res = await this.$api.noticeInfo({
					id:id,
					is_read:is_read
				});
				this.info = res;	
			}
		}
	}
</script>
<style>
	page {
		background: #fff;
	}
</style>
<style scoped>
	.title {
		font-size: 32rpx;
		font-weight: 600;
		color: #010101;
	}
</style>